package com.daodaofun.springboot;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class MyBean {



    @Value("${secret}")
    private String secret;

    @Value("${number}")
    private int number;

    @Value("${longNumber}")
    private long longNumber;

    @Value("${uuid}")
    private String uuid;

    @Value("${lessTen}")
    private int lessTen;


    @Value("${range}")
    private int range;

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public long getLongNumber() {
        return longNumber;
    }

    public void setLongNumber(long longNumber) {
        this.longNumber = longNumber;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public int getLessTen() {
        return lessTen;
    }

    public void setLessTen(int lessTen) {
        this.lessTen = lessTen;
    }

    public int getRange() {
        return range;
    }

    public void setRange(int range) {
        this.range = range;
    }


    @Override
    public String toString() {
        return "MyBean{" +
                "secret='" + secret + '\'' +
                ", number=" + number +
                ", longNumber=" + longNumber +
                ", uuid='" + uuid + '\'' +
                ", lessTen=" + lessTen +
                ", range=" + range +
                '}';
    }
}

